package com.iwop.moto.utils.alipay;

/**
 * Created by 52HzBobo on 2016/11/3.
 */
public class AliPayComm {
    //注：该公钥为测试账号公钥  开发者必须设置自己的公钥 ,否则会存在安全隐患
    public static final String PUBLIC_KEY        = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtqz/UE6KCo3m0Z5O+uQVOi3CiYuSLC0A1qt+G0wZ6iYjH7Y58qMzALVjWIl1woyRQ/3ZBteeiQPhVGIgrBjECmAnf4XJPCfXdQLp66QUMdeXp/wUP8zDzxT5nNkTCJ9HQuuZaXrLY+3ewHnfsLAkCkha0aTSyrP1F37Ex1dPuNQIDAQAB";

    /**支付宝网关*/
    public static final String ALIPAY_GATEWAY    = "https://openapi.alipay.com/gateway.do"; //"https://openapi.alipay.com/gateway.do";

    /**授权访问令牌的授权类型*/
    public static final String GRANT_TYPE        = "authorization_code";

    public static final String PARTNER           = "";

    /**支付宝公钥-从支付宝服务窗获取*/
    public static final String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";

    /**签名编码-视支付宝服务窗要求*/
    public static final String SIGN_CHARSET      = "utf-8";

    /**字符编码-传递给支付宝的数据编码*/
    public static final String CHARSET           = "utf-8";

    /**签名类型-视支付宝服务窗要求*/
    public static final String SIGN_TYPE         = "RSA";

    /** 服务窗appId  */
    //APP应用ID
    public static final String APP_ID            = "2016103102438176";// [正式]2016103102438176 | [沙箱]2016092700604472

    //开发者请使用openssl生成的密钥替换此处  请看文档：https://fuwu.alipay.com/platform/doc.htm#2-1接入指南
    //注：该私钥为测试账号私钥  开发者必须设置自己的私钥 , 否则会存在安全隐患
    public static final String PRIVATE_KEY       = "MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAK2rP9QTooKjebRnk765BU6LcKJi5IsLQDWq34bTBnqJiMftjnyozMAtWNYiXXCjJFD/dkG156JA+FUYiCsGMQKYCd/hck8J9d1AunrpBQx15en/BQ/zMPPFPmc2RMIn0dC65lpestj7d7Aed+wsCQKSFrRpNLKs/UXfsTHV0+41AgMBAAECgYAwymfIQSvq39qVYHQVpQ1kn7ApLvdeSO7lJPhffHHZg0I2SPs68oFzjEnk/wqZVnwhdWPX2i8VWoNqBNZcoASsaup07nFxZmn1G2WNY3/28VZdFTrboJSRHtD5KiDhQeaRkxcmXR5i0YQB72SvpXWKY6MAkTQVTv8a8AsmV6WOgQJBAOb5KMrdh3wIk5bv5N7mckFgXzmka84mLuAxb9lEBPuM0eM2rpJXY8Jfh7CrE6pK1Ewk1ZPgwUcgarJP+ZsRCq0CQQDAfI554M8CSMhWYtn8zvtnVh+pEeCNJv+T/TorpKXGjOoE5FGyX8v8NhZANtztHuYffq/kAF95fUf5S1RVEaqpAkAEkUjNOjRDr6e7hGLyRXxc7przeNzo5rhmlpOvqDixAMflxl8NZc0DOwBj7f4lj/VCzDetBPTNg0aY4Bv/hQbBAkAjAoSnhkwgjjxh+fjMEpmHYhLAHZBKHB3APP6nkXrVciveV+jEGMhxRyUk6NWmC0iv0csMHUVAQ5kjrp/YGS6BAkB8zpJcjumKMo9fzFGNGrTw2QOS4jjmSHGK/SiyKi6Y5Yna/vS0KCBgbKNC2a8zgg7BSd4Ypt1/EuPcqv1Zgk42";

    public static final String ALIPAY_VERSION      = "1.0";
    /** 支付宝 App 请求接口  **/
    public static final String ALIPAY_TRADE_APP_MOTHOD   = "alipay.trade.app.pay";

    public static final String ALGORITHM = "RSA";

    public static final String SIGN_ALGORITHMS = "SHA1WithRSA";

    public static final String ALIPAY_NOTIFY_URL = "/api/alipay/gateway";

}
